package net.oschina.app.fragment;

import net.oschina.app.R;
import net.oschina.app.adapter.TabVPAdpater;
import net.oschina.app.fragment.newsview.NewsBlogFragmentt;
import net.oschina.app.fragment.newsview.NewsFragment;
import net.oschina.app.fragment.newsview.NewsHotFragment;
import net.oschina.app.fragment.newsview.NewsRecommendFragment;
import net.oschina.app.util.UIUtils;

/**
 * Created by wuer on 2017/4/1/001.
 * 综合页面
 */

public class NewsViewPagerFragment extends BaseTabPageFragment {
    String[] newsviewpageTitles=UIUtils.getStrings(R.array.news_viewpage_arrays);
    @Override
    protected int getFirstItem() {
        return 0;
    }

    @Override
    public void setupTab(TabVPAdpater adpater) {
        adpater.addTab(newsviewpageTitles[0], NewsFragment.class,null);
        adpater.addTab(newsviewpageTitles[1],NewsHotFragment.class,null);
        adpater.addTab(newsviewpageTitles[2],NewsBlogFragmentt.class,null);
        adpater.addTab(newsviewpageTitles[3],NewsRecommendFragment.class,null);
    }
}